#include<iostream>
#include<string>
using namespace std;
//test 3
#include "deck.h"
#include "random.h"
#include "dealer.h"
#include "player.h"
#include "strategy.h"
int main (void)
{
	Deck deck1;
	Dealer dealer;
	Player player;
	int dealer_value,player_value;
	char d_card[10],p_card[10];
	srand (time(NULL));
	int *rand1=new int[52];
        rand1 = unique_rand();

	d_card[0]=deck1.get_card(rand1[0]);
	d_card[1]=deck1.get_card(rand1[1]);
	dealer_value=deck1.card_to_value(d_card[0])+deck1.card_to_value(d_card[1]);
	cout<<"\ndealer card 1 >>"<<d_card[0];
	cout<<"\ndealer card 2 >>"<<d_card[1];
	cout<<"\ndealer value"<<dealer_value;
	player_value=player_strategy(deck1.card_to_value(d_card[0]),rand1);
	cout<<"\nplayer value"<<player_value;
	
}

